package com.wuye.basic.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wuye.basic.domain.WyCommunity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 小区Mapper接口
 * 
 * @author avalon
 * @date 2024-11-23
 */
@Mapper
public interface WyCommunityMapper extends BaseMapper<WyCommunity>
{
    /**
     * 查询小区
     * 
     * @param communityId 小区主键
     * @return 小区
     */
    public WyCommunity selectWyCommunityByCommunityId(Long communityId);

    /**
     * 查询小区列表
     * 
     * @param wyCommunity 小区
     * @return 小区集合
     */
    public List<WyCommunity> selectWyCommunityList(WyCommunity wyCommunity);

    /**
     * 新增小区
     * 
     * @param wyCommunity 小区
     * @return 结果
     */
    public int insertWyCommunity(WyCommunity wyCommunity);

    /**
     * 修改小区
     * 
     * @param wyCommunity 小区
     * @return 结果
     */
    public int updateWyCommunity(WyCommunity wyCommunity);

    /**
     * 删除小区
     * 
     * @param communityId 小区主键
     * @return 结果
     */
    public int deleteWyCommunityByCommunityId(Long communityId);

    /**
     * 批量删除小区
     * 
     * @param communityIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWyCommunityByCommunityIds(Long[] communityIds);
}
